import java.util.Scanner;

public class Main1085 {
    public static void main(String[] args) {
        int a;
        int b;
        int c;
        int d;
        int f;
        for (int i=1000;i<10000;i++){
            a=i/100;//30
            b=i%100;//25
            c=a+b;
            d=a+b;
            f=c*d;
            if (f==i){
                System.out.println(i);
            }
        }
    }
}
